package com.moon.api.enums;

import lombok.Getter;

/**
 * @author Lin
 * @date 2024/1/2 16:40
 */
@Getter
public enum LogicDeleteEnum {
    DELETE(Boolean.TRUE, "已删除"),
    NOT_DELETED(Boolean.FALSE, "未删除");

    private Boolean isDeleted;

    private String desc;

    LogicDeleteEnum(Boolean isDeleted, String desc) {
        this.isDeleted = isDeleted;
        this.desc = desc;
    }

    void setDeleted(Boolean deleted) {
        isDeleted = deleted;
    }

    void setDesc(String desc) {
        this.desc = desc;
    }
}
